package com.example.demo.service.adminService;

import com.example.demo.dao.AdminMapper;
import com.example.demo.pojo.Admin;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl  implements  AdminService{
    @Resource
    AdminMapper adminMapper;
    @Override
    public boolean findAdmin(String adName ,String adPassword) {
        Admin admin = new Admin();
        admin.setAdName(adName);
        admin.setAdPassword(adPassword);
        Admin admin1 = adminMapper.selectAdmin(admin);
       if (admin1!=null){
           return true;
       }
       return  false;
    }
}
